package com.lsh;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author ：LiuShihao
 * @date ：Created in 2021/3/8 10:26 上午
 * @desc ：
 *
 * 如果yml配置了包扫描dubbo.scan.base-packages，那么主启动类不不用加上@EnableDubbo注解了
 */
@EnableDubbo
//@ImportResource(locations = "classpath:consumer.xml")
//开启Hystrix服务
//@EnableHystrix
@SpringBootApplication
public class DubboConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(DubboConsumerApplication.class);
    }
}
